Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for v3.16 #66

Merged
merged 3 commits into from
Mar 3, 2024
Merged

Add support for v3.16 #66

merged 3 commits into from
Mar 3, 2024

Conversation

NickCondron
Copy link
Contributor

Copy link
Owner

@hohav hohav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Do you happen to have a v3.16 replay for tests?

@@ -75,7 +75,11 @@
{ "name": "hitlag", "type": "f32",
"version": "3.8" },
{ "name": "animation_index", "type": "u32",
"version": "3.11" }
"version": "3.11" },
{ "name": "instance_hit_by", "type": "u16",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking we should name this similarly to the existing last_hit_by field. Maybe last_hit_by_instance_id?

Copy link
Contributor Author

@NickCondron NickCondron Feb 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last_hit_by isn't even true to its name because it resets to 6 (signifying no other player) after a certain number of frames. The uselessness of that field was the main reason I even went about adding these new fields in the first place.

Anyway, I generally prefer the shorter name that isn't super semantic. Even your proposed name could be misleading given that it resets to 0 on death. I just went with the name in the spec, but if you want to change it you can.

@NickCondron
Copy link
Contributor Author

Thanks for this. Do you happen to have a v3.16 replay for tests?

Added a replay and tests. Used the v3.16 replay for the simple v3.14/v3.15 tests. More involved tests for v3.16 also added.

The v3.16 test sort of tests vanilla melee behavior, but I think it is still a useful test to verify the values make sense.

@hohav hohav merged commit 56929ba into hohav:main Mar 3, 2024
1 check passed
@hohav
Copy link
Owner

hohav commented Mar 3, 2024

Thanks for this, @NickCondron. I ended up renaming it to last_hit_by_instance.

Did you have any trouble with the code generation?

@NickCondron
Copy link
Contributor Author

Thanks for this, @NickCondron. I ended up renaming it to last_hit_by_instance.

Did you have any trouble with the code generation?

No. It went well. I just had to install a few dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants